home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / FWIntere.cpp next >
Encoding:
Text File  |  1996-09-17  |  3.2 KB  |  110 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWIntere.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFound.hpp"
  11.  
  12. #ifndef FWINTERE_H
  13. #include "FWIntere.h"
  14. #endif
  15.  
  16. #ifndef FWNOTIFR_H
  17. #include "FWNotifr.h"
  18. #endif
  19.  
  20. #ifndef FWTCOLL_H
  21. #include "FWTColl.h"
  22. #endif
  23.  
  24. #ifndef FWDEBUG_H
  25. #include "FWDebug.h"
  26. #endif
  27.  
  28. //========================================================================================
  29. //    Template Instantiations
  30. //========================================================================================
  31.  
  32. FW_DEFINE_AUTO_TEMPLATE(FW_TOrderedCollectionIterator, FW_CInterest)
  33. FW_DEFINE_AUTO_TEMPLATE(FW_TOrderedCollection, FW_CInterest)
  34.  
  35. #ifdef FW_USE_TEMPLATE_PRAGMAS
  36.  
  37. #pragma template_access public
  38. #pragma template FW_TOrderedCollection<FW_CInterest>
  39. #pragma template FW_TOrderedCollectionIterator<FW_CInterest>
  40.  
  41. #else
  42.  
  43. template class FW_TOrderedCollection<FW_CInterest>;
  44. template class FW_TOrderedCollectionIterator<FW_CInterest>;
  45.  
  46. #endif
  47.  
  48. //========================================================================================
  49. // CLASS FW_CInterest
  50. //========================================================================================
  51.  
  52. //----------------------------------------------------------------------------------------
  53. // FW_CInterest::FW_CInterest
  54. //----------------------------------------------------------------------------------------
  55.  
  56. FW_CInterest::FW_CInterest() :
  57.     fNotifier(NULL),
  58.     fMessage(0)
  59. {
  60. }
  61.  
  62. //----------------------------------------------------------------------------------------
  63. // FW_CInterest::FW_CInterest
  64. //----------------------------------------------------------------------------------------
  65.  
  66. FW_CInterest::FW_CInterest(FW_MNotifier* notifier, FW_Message msg) :
  67.     fNotifier(notifier),
  68.     fMessage(msg)
  69. {
  70. }
  71.  
  72. //----------------------------------------------------------------------------------------
  73. // FW_CInterest::FW_CInterest
  74. //----------------------------------------------------------------------------------------
  75.  
  76. FW_CInterest::FW_CInterest(const FW_CInterest& other) :
  77.     fNotifier(other.fNotifier),
  78.     fMessage(other.fMessage)
  79. {
  80. }
  81.  
  82. //----------------------------------------------------------------------------------------
  83. // FW_CInterest::~FW_CInterest
  84. //----------------------------------------------------------------------------------------
  85.  
  86. FW_CInterest::~FW_CInterest()
  87. {
  88. }
  89.  
  90. //----------------------------------------------------------------------------------------
  91. // FW_CInterest::operator=
  92. //----------------------------------------------------------------------------------------
  93.     
  94. FW_CInterest& FW_CInterest::operator=(const FW_CInterest& other)
  95. {
  96.     fNotifier = other.fNotifier;
  97.     fMessage = other.fMessage;
  98.     
  99.     return *this;
  100. }
  101.  
  102. //----------------------------------------------------------------------------------------
  103. // FW_CInterest::operator==
  104. //----------------------------------------------------------------------------------------
  105.  
  106. FW_Boolean FW_CInterest::operator==(const FW_CInterest& other) const
  107. {
  108.     return fNotifier == other.fNotifier && fMessage == other.fMessage;
  109. }
  110.